<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>作品详情</title>
<{include file="block/meta.tpl"}>
<script type="text/javascript" src="<{$__HST_UI}>/js<{$_The.ScriptBase}>.js"></script>
</head>
<body>
<div id="wrap">
<{include file="block/header.tpl"}>

<div id="art">
	<div id="artPic">
		<div class="jqzoomBox">
			<img src="<{$rAlbums.0.thumb|uWorkAlbum_thumb:$rAlbums.0.id:'585x415.jpg'}>" title="<{$rAlbums.0.id|uWorkAlbum_i18n:title|escape:html}>">
		</div>
		<div id="imgBox">
			<ul>
<{section name=i loop=$rAlbums}>
				<li><a url="<{$rAlbums[i].thumb|uWorkAlbum_thumb:$rAlbums[i].id:'585x415.jpg'}>" title="<{$rAlbums[i].id|uWorkAlbum_i18n:title|escape:html}>"<{if 0==$smarty.section.i.index}> class="now"<{/if}>><img src="<{$rAlbums[i].thumb|uWorkAlbum_thumb:$rAlbums[i].id:'59x59.jpg'}>" alt="<{$rAlbums[i].id|uWorkAlbum_i18n:title|escape:html}>"></a></li>
<{/section}>
			</ul>
		</div>
	</div>
	<div id="artTxt">
		<h1><{$rHomeWork.id|uWork_i18n:title|escape:html}></h1>
		<h2 class="hoverIco clearfix"><a href="/artist/detail.php?id=<{$rOwner.id}>"><span><{$rOwner.id|uUser_i18n:sign|escape:html}></span></a></h2>
		<div class="line"></div>
		<div id="tb">
			<table width="100%" border="0"><tr>
				<td class="td1"><span><{'work_category'|i18n|escape:html}>:</span></td>
				<td class="td2 ico hoverIco"><a href="/artwork/list.php?category=<{$rCtgry.id}>"><span><{$rCtgry.id|uCategory_i18n:title|escape:html}></span></a></td>
			</tr><tr>
				<td><span><{'work_year'|i18n|escape:html}>:</span></td>
				<td class="ico hoverIco"><a href="/artwork/list.php?year=<{$rHomeWork.year}>"><span><{$rHomeWork.year|escape:html}></span></a></td>
<{if !$rHomeWork.has_size}>
			</tr><tr>
				<td><span><{'work_size'|i18n|escape:html}>:</span></td>
				<td><{$rHomeWork.id|uWork_i18n:size|escape:html}></td>
<{/if}>
			</tr><tr>
				<td><span><{'work_weight'|i18n|escape:html}>:</span></td>
				<td><{$rHomeWork.id|uWork_i18n:weight|escape:html}></td>
			</tr><tr>
				<td valign="top"><span><{'work_description'|i18n|escape:html}>:</span></td>
				<td><{$rHomeWork.id|uWork_i18n:description|escape:html|nl2br}></td>
			</tr></table>
		</div>
<{if $rHomeWork.has_size}>
		<div class="line"></div>
		<div class="subtitle icn1">Choose Size:</div>
		<div class="size_options">
<{section name=i loop=$rSizes}>
			<div class="option<{if 0==$smarty.section.i.index}>_on<{/if}>" rel="<{$rSizes[i].id}>" kuang="<{$rSizes[i].k_id}>">
				<span class="title"><{$rSizes[i]|@uWorkSize_i18n:'title'|escape:html}></span>
				<span class="limit kuang_0"><{$rSizes[i].n_stock_max}></span>
				<span class="money kuang_0"><{if 'en'==$smarty.session.LANG}>$<b><{$rSizes[i].n_price_en}></b>
					<{else}>￥<b><{$rSizes[i].n_price}></b><{/if}></span>
				<span class="limit kuang_1"><{$rSizes[i].k_stock_max}></span>
				<span class="money kuang_1"><{if 'en'==$smarty.session.LANG}>$<b><{$rSizes[i].k_price_en}></b>
					<{else}>￥<b><{$rSizes[i].k_price}></b><{/if}></span>
			</div>
<{/section}>
		</div>
		<div class="subtitle icn2">Add Frame: <a href="javascript:void(0)" id="option_kuang" class="kuang" rel="no"></a></div>
<{/if}>
		<div class="line"></div>
		<div id="buyBox">
			<div id="s" class="<{if 'dollor'==$smarty.session.MONEY}>dollor<{else}>yang<{/if}>"></div>
			<div class="p2"><{$rHomeWork|@uWork_Price|escape:html}></div>
			<div id="buyTxt">
				<form id="fm_buy" method="get" action="/buy/cart.php" target="_blank">
				<input type="hidden" name="action" value="add" />
				<input type="hidden" name="id" value="<{$rHomeWork.id}>" />
				<input type="hidden" name="size" value="<{$rHomeWork.size_id}>" />
				<input type="hidden" name="kuang" value="0" />
				<span><{'buy_want_quantity'|i18n|escape:html}></span>
				<input type="text" name="quantity" value="1" />
				<span class="num" rel="<{$rHomeWork.stock|escape:html}>"><{$rHomeWork.stock_max|escape:html}></span>
				<span class="limited"></span>
				</form>
			</div>
			<a href="javascript:msg(add2cart());void(0);" class="buyBtn2"></a>
			<script type="text/javascript">function msg(err){
				if ('soldout'==err){alert('<{'hint_buy_soldout'|i18n|escape:javascript}>');}
				else if ('overquantity'==err){alert('<{'hint_buy_overquantity'|i18n|escape:javascript}>');}
				else if ('wrongquantity'==err){alert('<{'hint_buy_wrongquantity'|i18n|escape:javascript}>');}
			}</script>
		</div>
	</div>
</div>
<div id="line"></div>
<div id="userBox">
	<div id="user">
		<a href="../artist/detail.php?id=<{$rOwner.id}>" title="<{$rOwner.id|uUser_i18n:sign|escape:html}>"><img src="<{$rOwner.thumb|uUser_thumb:$rOwner.id:'220x220.jpg'}>" alt="<{$rOwner.id|uUser_i18n:sign|escape:html}>"></a>
		<span class="logo"></span>
	</div>
	<div id="intro">
		<h1><a href="../artist/detail.php?id=<{$rOwner.id}>" title="<{$rOwner.id|uUser_i18n:sign|escape:html}>"><{$rOwner.id|uUser_i18n:sign|escape:html}></a></h1>
		<div><p><{$rOwner.id|uUser_i18n:description|escape:html|nl2br}></p></div>
	</div>
</div>

<div id="artTit">
<{if 'en'==$smarty.session.LANG}>
	Other Artworks of <span><{$rOwner.id|uUser_i18n:sign|escape:html}></span>
<{else}>
	<span><{$rOwner.id|uUser_i18n:sign|escape:html}></span> 的其他作品
<{/if}>
</div>
<div class="listBox list2" id="<{if 'dollor'==$smarty.session.MONEY}>dollor<{else}>yang<{/if}>">
	<ul class="hoverList">
<{section name=i loop=$rOtherWorks}>
		<li>
			<a class="hovPic" href="/artwork/detail.php?id=<{$rOtherWorks[i].id}>" target="_blank"><img src="<{$rOtherWorks[i].thumb|uWork_thumb:$rOtherWorks[i].id:'166x166.jpg'}>" width="166" height="166"><span class="icon"><p class="st"><{$rOtherWorks[i].id|uWork_i18n:title|escape:html}></p><p><{$rOtherWorks[i].owner_id|uUser_i18n:sign|escape:html}></p><p><{if 'en'==$smarty.session.LANG}><{$rOtherWorks[i].stock_max}> Limited<{else}>限量<{$rOtherWorks[i].stock_max}><{/if}></p></span></a>
			<a class="hover" href="/artwork/detail.php?id=<{$rOtherWorks[i].id}>" target="_blank"><span><{$rOtherWorks[i]|@uWork_Price|escape:html}><div class="ico"></div></span></a>
		</li>
<{/section}>
	</ul>
</div>
<div id="line2"><a class="more" href="list.php?artist=<{$rOwner.id}>"><span class="ico"></span></a></div>

<{include file="block/footer.tpl"}>
</div>
</body>
</html>
